package intelligentcity.cities;

import intelligentcity.conf.Conf;
import intelligentcity.model.CityBuilder;
import intelligentcity.model.intersections.Intersection;
import intelligentcity.model.streets.HorizontalStreet;
import intelligentcity.model.streets.VerticalStreet;
import intelligentcity.system.LightsLearnedByFrequency;

public class KansasCityBuilder extends CityBuilder {

    public KansasCityBuilder() {
        super();

        leftBorderOfTraffic = 5;
        rightBorderOfTraffic = 895;
        upperBorderOfTraffic = 5;
        lowerBorderOfTraffic = 685;

        addStreet(new HorizontalStreet(0, 400, 330, Conf.MAIN));

        addStreet(new VerticalStreet(400, 0, 320));
        Intersection int1 = new Intersection(new VerticalStreet(400, 320, 510), new HorizontalStreet(330, 400, 510));
        addIntersection(int1);
        addStreet(new VerticalStreet(400, 510, 690));

        addStreet(new HorizontalStreet(510, 400, 900, Conf.MAIN));

        int1.setLights(new LightsLearnedByFrequency());

    }

}
